//
//  NiuRenMember.m
//  RedManStock
//
//  Created by lanou3g on 15/7/22.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "NiuRenMember.h"

@implementation NiuRenMember

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    if ([key isEqualToString:@"id"]) {
        self.niuRenMemberId=[NSString stringWithFormat:@"%@",value];
    }
    if ([key isEqualToString:@"avgWeekYieldRate"]) {
        CGFloat number=[(NSNumber *)value floatValue]*100;
        self.avgWeekYieldRateSB=[NSString stringWithFormat:@"%.2f%%",number];
    }
    if ([key isEqualToString:@"totalYieldRate"]) {
        CGFloat number=[(NSNumber *)value floatValue]*100;
        self.totalYieldRateSB=[NSString stringWithFormat:@"%.2f%%",number];
    }
}

@end
